import { ICalendar } from "@/types/calendar";
import { IR } from "@/types/response";
import { request } from "@/utils/request";
const prefix = "/calendar"
interface IDate {
  year?: string;
  month?: string;
  sun?: string;
}
export function getCalendarApi(d: IDate): Promise<IR<ICalendar[]>> {
  return request(`${prefix}/getCalendar/${d.year}`, 'POST', {
    body: d,
  })
}